package com.tqjc.execute.consts;

import com.tqjc.execute.task.entity.Task;

import java.util.HashMap;
import java.util.Map;

/**
 * @Description: 工作时的控制点位常量
 * @author: pzy
 * @date: 2023年05月22日 14:39
 */

public class WorkConst {

    //辊道到位信号前缀
    public final static String ROLLER_READY_SIGNAL_PREFIX = "";


    //辊道钢板号信号前缀
    public final static String ROLLER_STEEL_SIGNAL_PREFIX = "";


    //停止抓取重量
    public final static Integer MAX_STOCK_WEIGHT = 18600;


    public static Boolean CRANE_DEBUG_SWITCH_FLAG = false;


    //天车PLC点位集合
    public final static String STEP_START = "步骤开始";
    public final static String STEP_IS_RUNNING = "步骤进行中";
    public final static String STEP_FINISH = "步骤完成";
    public final static String STEP_CANCEL = "步骤取消";
    public final static String STEP_TYPE = "步骤类型";
    public final static String TARGET_CRANE_X = "目标大车坐标";
    public final static String TARGET_CRANE_Y = "目标小车坐标";
    public final static String TARGET_CRANE_Z = "目标起升高度";
    public final static String IS_SAFE_HEIGHT = "处于安全高度";
    public final static String IS_SUCK_READY = "步骤完成";
    public final static String IS_MOVING = "正在移动";
    public final static String SUCK_STATUS = "吸板状态";

    public final static String STEEL_NUM = "钢板编号";

    public final static String ROLLER_READY = "辊道到位状态";
    public final static String NOW_CRANE_X = "当前大车位置";
    public final static String NOW_CRANE_Y = "当前小车位置";
    public final static String NOW_CRANE_Z = "当前起升高度";


    public final static String ALIGN_DB = "DB20.292.4";




    public final static String STEEL_MOVED_DB = "DB20.292.5";


    public final static String EASY_PLACE_DB = "DB20.292.7";

    public final static String AUTO_ALIGN_DB = "DB20.293.0";

    public final static String ALIGN_FAULT_LABEL = "对中故障";


    public final static String ALIGN_LABEL = "一键对中";


    public final static String STEEL_MOVED_LABEL = "钢板已搬离";



    public final static String EASY_PLACE_LABEL = "一键操作";


    public final static String ALIGN_FINISH_LABEL = "对中任务完成";


    public final static int DATATYPE_BOOL = 0;


    public static Map<String, Task> cacheTaskMap=new HashMap<>();

    //门禁信号点位

    public static String getPlcPoint(String craneType, String point) {
        return craneType + point;
    }


    /**
     * create by: pzy
     * description: 根据天车类型获取辊道点位
     * create time: 2023/5/25 14:20
     *
     * @return java.lang.String
     * @param: [craneType]
     */
    public static String getRollerReadySignal(String craneType) {
        return "";
    }

    /**
     * create by: pzy
     * description: 根据天车类型获取辊道钢板信息读取点位
     * create time: 2023/5/25 14:20
     *
     * @return java.lang.String
     * @param: [craneType]
     */
    public static String getRollerSteelNumSignal(Integer rollerId) {
        return "";
    }

}
